package com.company.bean;

import java.util.Date;


//和数据库的属性值保持一致,可以忽略大小写



/**
 * dbutils的要求：
 */
public class UserInfoBean {


        //添加与数据库一一对应的属性
        private  Integer userID;
        private  String userName;
        private  String userPsw;
        private  String userPhone;
        //开始日期
        private Date userRegisterDate;
        //查询条件--开始日期到截止日期
        private  Date userRegisterDate2;

        public UserInfoBean(){ }


        //两个参数的构造方法
        public UserInfoBean(String userName, String userPhone) {
        this.userName = userName;
        this.userPhone = userPhone;
    }

    public Date getUserRegisterDate2() {
            return userRegisterDate2;
        }

        public void setUserRegisterDate2(Date userRegisterDate2) {
            this.userRegisterDate2 = userRegisterDate2;
        }

        public Date getUserRegisterDate() {
            return userRegisterDate;
        }

        public void setUserRegisterDate(Date userRegisterDate) {
            this.userRegisterDate = userRegisterDate;
        }

        public Integer getUserID() {
            return userID;
        }

        public void setUserID(Integer userID) {
            this.userID = userID;
        }

        public String getUserName() {
            return userName;
        }

    /**
     * setter方法的依赖方法
     * 去掉setter的方法
     * @return
     */
      public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getUserPsw() {
            return userPsw;
        }

        public void setUserPsw(String userPsw) {
            this.userPsw = userPsw;
        }

        public String getUserPhone() {
            return userPhone;
        }

       public void setUserPhone(String userPhone) {
            this.userPhone = userPhone;
        }

        @Override
        public String toString() {
            return "UserInfoBean{" +
                    "userID=" + userID +
                    ", userName='" + userName + '\'' +
                    ", userPsw='" + userPsw + '\'' +
                    ", userPhone='" + userPhone + '\'' +
                    ", userRegisterDate=" + userRegisterDate +
                    ", userRegisterDate2=" + userRegisterDate2 +
                    '}';
        }
    }
